package com.aaa.entity;

public class Dynasty {
    private int dynId;
    private String dynName;
    private int beginYear;
    private int endYear;

    public Dynasty() {
    }

    public Dynasty(int dynId, String dynName, int beginYear, int endYear) {
        this.dynId = dynId;
        this.dynName = dynName;
        this.beginYear = beginYear;
        this.endYear = endYear;
    }

    public int getDynId() {
        return dynId;
    }

    public void setDynId(int dynId) {
        this.dynId = dynId;
    }

    public String getDynName() {
        return dynName;
    }

    public void setDynName(String dynName) {
        this.dynName = dynName;
    }

    public int getBeginYear() {
        return beginYear;
    }

    public void setBeginYear(int beginYear) {
        this.beginYear = beginYear;
    }

    public int getEndYear() {
        return endYear;
    }

    public void setEndYear(int endYear) {
        this.endYear = endYear;
    }
}
